//
//  WBComposeTypeButton.swift
//  daoge_sineweibo
//
//  Created by 伍禄林 on 16/10/19.
//  Copyright © 2016年 伍禄林. All rights reserved.
//

import UIKit

class WBComposeTypeButton: UIControl {

    @IBOutlet weak var iconImageView: UIImageView!
   
    @IBOutlet weak var titleLabel: UILabel!
    
    var clsName: String?
    
    class func composeTypeButton(imageName: String,title: String) -> WBComposeTypeButton {
        
        let nib = UINib(nibName: "WBComposeTypeButton", bundle: nil)
        
        let btn = nib.instantiate(withOwner: nil, options: nil)[0] as! WBComposeTypeButton
        
        btn.iconImageView.image = UIImage(named: imageName)
        
        btn.titleLabel.text = title
        
        return btn
    }

}
